Skip to main content

Bug Tracker

Side navigation

#8077 closed bug (duplicate)

Opened January 27, 2011 05:47PM UTC

Closed January 27, 2011 06:28PM UTC

Last modified January 27, 2011 06:50PM UTC

$.subclass has no root functions

Reported by: danheberden Owned by:
Priority: blocker Milestone: 1.5
Component: core Version: 1.5rc1
Keywords: Cc:
Blocked by: Blocking:
Description

While a subclassed item has it's own copy of $.fn, root functions such as $.each aren't copied.

This explains it best: http://jsfiddle.net/danheberden/RhwE4/

A quick summary:

var $sub = $.subclass();
typeof $.each; // "function"
typeof $sub.each // "undefined"
Attachments (0)
Change History (7)

Changed January 27, 2011 05:48PM UTC by danheberden comment:1

component: unfiledcore

Changed January 27, 2011 05:49PM UTC by danheberden comment:2

summary: $.subclass has not root functions$.subclass has no root functions

Changed January 27, 2011 05:59PM UTC by jitter comment:3

cc: → wycats
priority: undecidedhigh

Changed January 27, 2011 06:22PM UTC by jitter comment:4

Also check the related #7979

Changed January 27, 2011 06:28PM UTC by danheberden comment:5

resolution: → duplicate
status: newclosed

Changed January 27, 2011 06:28PM UTC by danheberden comment:6

Duplicate of #7979.

Changed January 27, 2011 06:50PM UTC by jitter comment:7

cc: wycats
milestone: 1.next1.5
priority: highblocker