Skip to content

Commit

Permalink
show warning, when _render is not defined, update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelvlasov committed Jan 7, 2016
1 parent 5f81b11 commit f0b36b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Decorator.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ compiler = require './Compiler.coffee'
module.exports = (BaseClass) ->
class ClassNamesDecorator extends BaseClass
render: ->
compiler.traverse @_render()
if @_render
compiler.traverse @_render()
else if window.console
console.error 'Warning: bluecore-classnames requires _render
method to be defined'
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bluecore-classnames",
"version": "0.1.1",
"version": "0.1.2",
"description": "Automatic class builder for React components",
"keywords": [
"react",
Expand Down Expand Up @@ -36,7 +36,7 @@
"coffee-loader": "^0.7.2",
"coffee-script": "^1.10.0",
"coffeelint": "^1.14.1",
"jest-cli": "0.4.x",
"jest-cli": "^0.8.2",
"react-addons-test-utils": "^0.14.3",
"react-dom": "^0.14.3",
"webpack": "^1.12.9"
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ module.exports =

module:
loaders: [
{test: /\.coffee/, loader: 'coffee'}
test: /\.coffee/
loader: 'coffee'
]

0 comments on commit f0b36b4

Please sign in to comment.