github github
  • Home
  • Pricing and Signup
  • Training
  • Gist
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 921
    • 212
  • Source
  • Commits
  • Network (212)
  • Graphs
  • Tree: b3940d2

click here to add a description

click here to add a homepage

  • Switch Branches (8)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
    • widget-super
  • Switch Tags (21)
    • 1.9m2
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.4
    • 1.8.3
    • 1.8.2
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Replace element.data(...) with $.data(element, ...). Fixes #5756 - Widget: Use $.data instead of .data for performance reasons
jzaefferer (author)
Fri Jul 30 05:04:11 -0700 2010
commit  b3940d2f78dfcc37792c
tree    b99a04b26fdbfca3ec51
parent  39f0c1010ac81eafab2e
M ui/jquery.ui.widget.js 3 •••
Txt ui/jquery.ui.widget.js
  • View file @ b3940d2
... ...
@@ -129,7 +129,8 @@ $.Widget.prototype = {
129 129
   _createWidget: function( options, element ) {
130 130
     // $.widget.bridge stores the plugin instance, but we do it anyway
131 131
     // so that it's stored even before the _create function runs
132  
-    this.element = $( element ).data( this.widgetName, this );
  132
+    $.data( element, this.widgetName, this );
  133
+    this.element = $( element );
133 134
     this.options = $.extend( true, {},
134 135
       this.options,
135 136
       $.metadata && $.metadata.get( element )[ this.widgetName ],

0 notes on commit b3940d2

Please log in to comment.
Dedicated Server Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
  • Blog
  • Support
  • Training
  • Job Board
  • Shop
  • Contact
  • API
  • Status
  • © 2010 GitHub Inc. All rights reserved.
  • Terms of Service
  • Privacy
  • Security
  • English
  • Deutsch
  • Français
  • 日本語
  • Português (BR)
  • 中文
  • See all available languages

Your current locale selection: English. Choose another?

  • English
  • Afrikaans
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska
  • 中文