فهرست منبع

Remove stale x-data function re-binding logic

Caleb Porzio 5 سال پیش
والد
کامیت
2cd9adc1f0
2فایلهای تغییر یافته به همراه0 افزوده شده و 9 حذف شده
  1. 0 0
      dist/alpine.js.map
  2. 0 9
      src/component.js

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/alpine.js.map


+ 0 - 9
src/component.js

@@ -15,20 +15,11 @@ export default class Component {
         // Construct a Proxy-based observable. This will be used to handle reactivity.
         this.$data = this.wrapDataInObservable(unobservedData)
 
-        // Walk through the raw data and set the "this" context of any functions
-        // to the observable, so data manipulations are reactive.
-        // Object.keys(unobservedData).forEach(key => {
-        //     if (typeof unobservedData[key] === 'function') {
-        //         unobservedData[key] = unobservedData[key].bind(this.$data)
-        //     }
-        // })
-
         // After making user-supplied data methods reactive, we can now add
         // our magic properties to the original data for access.
         unobservedData.$el = this.$el
         unobservedData.$refs = this.getRefsProxy()
 
-        // For $nextTick()
         this.nextTickStack = []
         unobservedData.$nextTick = (callback) => {
             this.nextTickStack.push(callback)

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است