Skip to content

Commit 8c4af80

Browse files
committed
remove v-callbacks in favor of the callback-prop pattern
1 parent c711f04 commit 8c4af80

File tree

5 files changed

+1
-173
lines changed

5 files changed

+1
-173
lines changed

component.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"src/config.js",
2727
"src/directive.js",
2828
"src/directives/attr.js",
29-
"src/directives/callbacks.js",
3029
"src/directives/class.js",
3130
"src/directives/cloak.js",
3231
"src/directives/component.js",

src/directives/callbacks.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/directives/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ exports.model = require('./model')
1818
exports.repeat = require('./repeat')
1919
exports['if'] = require('./if')
2020

21-
// child vm communication directives
22-
exports.callbacks = require('./callbacks')
23-
2421
// internal directives that should not be used directly
2522
// but we still want to expose them for advanced usage.
2623
exports._component = require('./component')

src/util/debug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function enableDebug () {
6565
if (id === 'events') {
6666
exports.warn(
6767
'v-events has been deprecated in ^0.12.0. ' +
68-
'Use v-callbacks instead.'
68+
'Pass down methods as callback props instead.'
6969
)
7070
return
7171
}

test/unit/specs/directives/callbacks_spec.js

Lines changed: 0 additions & 132 deletions
This file was deleted.

0 commit comments

Comments
 (0)